package com.nage.components.movement;

import android.util.Log;

import com.nage.components.touch.Controllable;
import com.nage.engine.GameObject;
import com.nage.input.Input;

public class Tipping extends Controllable {

	public Tipping(GameObject p) {
		super(p);
		type = TIPPING;
	}
	
	@Override
	public void onInputEvent(Input i) {
		Log.d("Tipping", "InputEvent detected");
		physics.addImpulse(i.xAngle / 10, i.yAngle / 10);
	}

}
